package com.whynot.frame.designMode.proxy.fixed;

import com.whynot.frame.designMode.proxy.fixed.service.UserService;
import com.whynot.frame.designMode.proxy.fixed.service.UserService;

/**
 * 静态代理模式
 * @author chenyao
 * 
 * 缺点：不宜于扩展，不可能系统中大量的代理类吧
 */
public class UserServiceProxy {

	private UserService userService;

	public UserServiceProxy(UserService userService) {
		this.userService = userService;
	}
	
	public String getUserName(){
		return userService.getUserName();
	}
	
}
